package com.bestcem.xm.ticket.service.manager.record;

import com.bestcem.xm.ticket.entity.mongo.TicketRecord;
import com.bestcem.xm.ticket.service.manager.record.param.BaseTicketRecordParam;
import com.bestcem.xm.ticket.service.manager.record.param.ReopenTicketRecordParam;
import lombok.Getter;
import lombok.ToString;

import java.util.Objects;

/**
 * 重新打开工单日志记录
 *
 * @author liheng
 * @version v1.0
 * @date 2021/9/10 17:46
 */
@ToString(callSuper = true)
@Getter
public class ReopenTicketRecord extends BaseTicketRecord {

    private ReopenTicketRecord(BaseTicketRecordParam param) {
        super(param);
    }

    public static ReopenTicketRecord getInstance(ReopenTicketRecordParam param) {
        if (Objects.isNull(param)) {
            return null;
        }
        return new ReopenTicketRecord(param);
    }

    @Override
    TicketRecord.CustomAttr customAttr() {
        return new TicketRecord.CustomAttr();
    }
}
